<?php

namespace app\admin\controller\classroom;

use app\common\controller\Backend;
use think\Cache;

/**
 * Ajax
 *
 * @icon fa fa-circle-o
 * @internal
 */
class Ajax extends Backend
{

    /**
     * 模型对象
     */
    protected $model = null;
    protected $noNeedRight = ['*'];


    /**
     * 清除缓存
     */
    public function clearcache()
    {
        Cache::clear("classroom");
        $config = get_addon_config('classroom');
        @rmdirs(TEMP_PATH, false);
        $this->success("");
    }

}
